package com.zcwin.runner.utils;


/**
 *
 * @author 王士江
 * @version 1.0
 */
public class RedisConfig {
    //Redis服务器IP
    private String redisServer;
    //Redis的端口号
    private int redisPort;
    //访问密码,若你的redis服务器没有设置密码，就不需要用密码去连接
    private String redisAuth;
    //可用连接实例的最大数目，默认值为8；
    private int redisMax_total;
    //控制一个pool最多有多少个状态为idle(空闲的)的jedis实例，默认值也是8。
    private int redisMax_idle;
    //等待可用连接的最大时间，单位毫秒，默认值为-1，表示永不超时。
    private int redisMax_wait;
    private int redisTimeout;
    //在borrow一个jedis实例时，是否提前进行validate操作；如果为true，则得到的jedis实例均是可用的；
    private boolean redisTest_on_borrow=true;
    
    public RedisConfig()
    {
       
    }

    public String getRedisServer() {
        return redisServer;
    }

    public void setRedisServer(String redisServer) {
        this.redisServer = redisServer;
    }

    public int getRedisPort() {
        return redisPort;
    }

    public void setRedisPort(int redisPort) {
        this.redisPort = redisPort;
    }

    public String getRedisAuth() {
        return redisAuth;
    }

    public void setRedisAuth(String redisAuth) {
        this.redisAuth = redisAuth;
    }

    public int getRedisMax_total() {
        return redisMax_total;
    }

    public void setRedisMax_total(int redisMax_total) {
        this.redisMax_total = redisMax_total;
    }

    public int getRedisMax_idle() {
        return redisMax_idle;
    }

    public void setRedisMax_idle(int redisMax_idle) {
        this.redisMax_idle = redisMax_idle;
    }

    public int getRedisMax_wait() {
        return redisMax_wait;
    }

    public void setRedisMax_wait(int redisMax_wait) {
        this.redisMax_wait = redisMax_wait;
    }

    public int getRedisTimeout() {
        return redisTimeout;
    }

    public void setRedisTimeout(int redisTimeout) {
        this.redisTimeout = redisTimeout;
    }

    public boolean isRedisTest_on_borrow() {
        return redisTest_on_borrow;
    }

    public void setRedisTest_on_borrow(boolean redisTest_on_borrow) {
        this.redisTest_on_borrow = redisTest_on_borrow;
    }
}
